package com.yhq.basic.function;

import java.util.function.Consumer;

/**
 * Function<T,R> 对T类型进行操作返回R类型
 *
 * @author hqyin
 * @date 2023/2/7 3:55 下午
 */
public class TestConsumer {
    public static void main(String[] args) {
        Consumer<Integer> c = (o) -> {
            int t = o + 5;
            System.out.println(t);
        };
        c.accept(3);
    }

}


